package com.qf.mybatis;

import com.qf.dao.UserDao;
import com.qf.utils.MyBatisUtils;
import org.junit.Test;

/**
 * @author lixu
 */
public class MybatisTest3 {


    @Test
    public void testMybatisUtils() throws Exception {
        UserDao mapper = MyBatisUtils.getMapper(UserDao.class);
        mapper.deleteById(2);
        MyBatisUtils.commit();
    }
}
